package com.zhbr.mvp.contract;

import com.zhbr.entity.Account;
import com.zhbr.mvp.base.model.IModel;
import com.zhbr.mvp.base.view.IView;
import java.util.Map;
import rx.Subscriber;

public class LoginContract {

    public interface View extends IView {
        /**
         * 成功
         */
        void onLoginSuccess(Account data);
        /**
         * 失败
         */
        void onLoginFail(Throwable ex, String code, String msg);

    }

    public interface Presenter {
        void login(String phone, String password);
    }

    public interface Model extends IModel {
        /**
         * 测试
         */
        void login(Map map, Subscriber subscriber);
    }

}
